home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-seriously_amiga-
/
misc
/
football
/
user
/
fixturesleft.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-02-03
|
2KB
|
72 lines
/* ***********************************************************************
DISPLAY FIXTURES LEFT PROGRAM FOR FOOTBALL REXX SUITE
-------------------------------------------------------
Copyright Mark Naughton 1998
Version Date History
--------------------------------------------------------------------------
1.0 140498 First release.
**************************************************************************
Procedure
---------
1. Check files exist. Open Teams.sf datafile. Get league name.
2. Search for unplayed matches and store.
3. Print the matches and exit...
************************************************************************** */
PARSE ARG league_stuff
version = 1
input_file = '.sf'
separator = '*'
separator2 = '**'
games. = '???'
mtch = 0
not_played = '__ __'
parse var league_stuff league_file
league_file = "Data/" || league_file
if exists(league_file || input_file) = 0 then exit
if open(datafile,league_file || input_file,'r') then do
do while ~eof(datafile)
line = readln(datafile)
if pos(separator2,line) > 0 then
league_title = delstr(line,1,3)
if pos(not_played,line) > 0 then do
mtch = mtch + 1
games.mtch = line
end
end
close(datafile)
end
else do
say
say "ERROR : (FixturesLeft)"
say
say "Cannot open '"league_file||input_file"' for reading."
exit
end
say
say center("'"league_title"'",78)
say "-------------------------------------------------------------------------------"
say
say "Fixtures To Be Played : "mtch
say
do i=1 to mtch
say games.i
end
say
say
say "-------------------------------------------------------------------------------"
say
exit